package com.emm.yixun.website.service.ao.DataService;

import com.emm.yixun.common.model.User;
import com.emm.yixun.common.model.dto.ResponseOrg;
import com.emm.yixun.common.model.enums.ActRemarkEnum;
import org.activiti.engine.runtime.ProcessInstance;
import org.activiti.engine.task.Task;

/**
 * 
 * ClassName: OaSendHttpMessageService <br/>
 * Reason: 给泛微发送流程信息 <br/>
 * date: 2017年6月16日 上午10:19:03 <br/>
 *
 * @author Administrator
 * @version 
 * @since JDK 1.6
 */
public interface OaSendHttpMessageService {
    /**
     * 
     * sendHaveMessage:(发送已办,结办信息). <br/>
     * @author Administrator
     * @param task
     * @param processInstance
     * @param user
     * @param act
     * @return
     * @since JDK 1.6
     */
    public ResponseOrg sendHaveMessage(Task task,ProcessInstance processInstance,User user,ActRemarkEnum act,String processName) throws Exception;
    
    /**
     * 发送待办信息
     * @param task
     * @param processInstance
     * @param user
     * @param nextUserId
     * @param nextTaskId
     * @return
     */
    public ResponseOrg sendWaitMessage(Task task,ProcessInstance processInstance,User user,Long nextUserId,String nextTaskId,String processName) throws Exception;
}
